//=================================公共模型对象===============================================
//公共的后台响应结果
export interface ResponseResult<T> {
  code: number,
  data: T,
  msg: string,
}

//公共分页结果
export interface PageResponse<T>{
  page: number
  pageSize: number
  pages: number
  total: number
  records: Array<T>
}
//公共分页搜索参数
export interface BaseSearchParams {
  pageSize: number,
  pageNum:number
  name?: string,
  status?: number,
  id?: number
}
//公共基础模型
export interface BaseModel {
  createBy?: number
  createTime?: string
  id?: number
  updateBy?: number
  updateTime?: string
}
export interface ListFormModel<T> {
  data: Array<T>
}
export interface StatusParams {
  id: number,
  status: number
}
//================================护理项目=======================================
//护理项目增加、修改、详情的模型对象
export interface ProjectFormModel extends BaseModel {
  creator?: string
  image: string
  name: string
  nursingRequirement: string
  orderNo: number
  price: number
  status: number
  unit: string
  id: number
}
//================================护理计划=======================================
// 护理计划增加、修改、详情的模型对象
export interface PlanFormModel extends BaseModel {
  planName: string
  projectPlans?: [
    {
      createBy?: number
      createTime?: string
      executeCycle: number
      executeFrequency: number
      executeTime: string
      id?: number
      planId: number
      projectId: number
      updateBy?: number
      updateTime?: string
    }
  ]
  sortNo: number
  status: number
}
//================================护理等级=======================================
// 护理等级增加、修改、详情的模型对象
export interface LevelFormModel extends BaseModel {
  fee: number
  name: string
  planId: number
  planName?: string
  status: number
}


//================================护理任务=======================================
